Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add KubernetesMetadata extensions #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adohe
Copy link

@adohe adohe commented Apr 17, 2024

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

  • N
  • Y

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

  • N
  • Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

  • Unit test
  • Integration test
  • Benchmark (add benchmark stats below)
  • Manual test (add detailed scripts or steps below)
  • Other

6. Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@adohe adohe force-pushed the update_label_annotation branch from 5bf6c16 to dbefd74 Compare April 17, 2024 14:04
@adohe adohe force-pushed the update_label_annotation branch from dbefd74 to fa0fe69 Compare April 19, 2024 04:24
Workload defines how to run your application code. Currently supported workload profile
includes Service and Job.
accessories: {str:any}, default is Undefined, optional.
Accessories defines a collection of accessories that will be attached to the workload.
labels: {str:str}, default is Undefined, optional.
extensions: [extv1.KubernetesMetadata], default is Undefined, optional.
Labels can be used to attach arbitrary metadata as key-value pairs to resources.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename this description to extensions

@@ -25,6 +24,9 @@ schema Job(WorkloadBase):
}
"""

# The kind
kind: "job" = "job"
Copy link
Member

@SparkYuan SparkYuan Apr 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does "job" = "job" mean? Would you like to create an enumeration for the kind variable with the default value of "job"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants